package cn.wolfcode.transfer.mapper;

import cn.wolfcode.transfer.domain.Notice;
import cn.wolfcode.transfer.qo.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface NoticeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Notice record);

    Notice selectByPrimaryKey(Long id);

    List<Notice> selectAll(QueryObject queryObject);

    int updateByPrimaryKey(Notice record);

    List<Notice> selectForList(QueryObject qo);


    void pushStatus(@Param("id") Long id, @Param("pushTime") Date date);
    void pushStatus(@Param("id") Long id);

    void cancel(Long id);
}